package org.wordml.core.experiment.word2003.elements;

import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;

import org.wordml.core.experiment.word2003.MSWordNamespace;

public class BoldElement extends OffOnElementAttribute {

	public BoldElement() {
		super(MSWordNamespace.W);
	}
	@Override
	public void write(XMLStreamWriter writer) throws WordProcessingException {
		try{
			writer.writeStartElement(namespace.getPrefix(), "b", namespace.getUri());
			super.write(writer);
			writer.writeEndElement();
		}catch(XMLStreamException e){
			throw new WordProcessingException(e);
		}
	}
}
